package cn.liontalk.dao;

import cn.liontalk.entity.ProductInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description
 * @date 2019-04-15 22:00
 **/
public interface ProductInfoRepository extends JpaRepository<ProductInfo,Integer> {


    /**
     * 查询上架的商品
     * @param type
     * @return List<ProductInfo>
     */
    List<ProductInfo> queryByProductStatus(int type);

}
